import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.File;
import java.util.HashMap;

@Getter
@Setter
public class MdUrl {

    private String name;
    private File file;
    public MdUrl next;

    public MdUrl() {
    }

    public MdUrl(String name, File file) {
        this.name = name;
        this.file = file;
    }


    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        while (next!=null){
            stringBuilder.append(next.name+":"+next.file.getAbsolutePath()).append("-->");
            next=next.next;
        }
        return stringBuilder.toString();
    }
}
